import random
ALPHAS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijkilmnopqrstuvwxyz123456789'
ALPHA_NUMBERS = len(ALPHAS) - 1

def get_random_code(length,num):
    for _ in range(num):
        code = ''
        for _ in range(length):
            index = random.randint(0, ALPHA_NUMBERS)
            code += ALPHAS[index]
        print(code)

def main():
    length = int(input('请输入长度：'))
    num = int(input('请输入数量：'))
    get_random_code(length,num)

if __name__ == '__main__':
    main()